package com.example.bookproject;

import com.example.bookproject.controller.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class BookProjectApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(BookProjectApplication.class, args);
        UserController bean = context.getBean(UserController.class);
        bean.doController();

    }

}
